package com.example.web.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.example.api.bean.Book;
import com.example.api.service.BookService;
import org.springframework.stereotype.Service;

/**
 * All rights Reserved, Designed By www.maihaoche.com
 *
 * @Package com.example.web.service
 * @author: 红雪（hongxue@maihaoche.com）
 * @date: 2019/1/23 11:53 AM
 * @Copyright: 2017-2020 www.maihaoche.com Inc. All rights reserved.
 * 注意：本内容仅限于卖好车内部传阅，禁止外泄以及用于其他的商业项目
 */
@Service
public class GWBookService {

    @Reference(interfaceClass = BookService.class,version = "1.0.0",retries =1,timeout = 3000)
    BookService bookService;

    public Book getBookById(int id){
        return bookService.getById(id);
    }


}
